package com.jl.util;

public class Main {

    public static void main(String[] args) {

       /* Template template = new Template();
        template.setTemplateId("");
        template.setTopColor("#00DD00");
        template.setToUser("");
        template.setUrl("");

        List<TemplateParam> params = new ArrayList<TemplateParam>();
        params.add(new TemplateParam("first", "您好，您有一条领取的图书信息。 ", "#FF3333"));
        params.add(new TemplateParam("keyword1", "Java核心技术", "#0044BB"));
        params.add(new TemplateParam("keyword2", "小强", "#0044BB"));
        params.add(new TemplateParam("keyword3", "2020-2-2", "#0044BB"));
        params.add(new TemplateParam("keyword4", "1天", "#0044BB"));
        params.add(new TemplateParam("Remark", "请您及时去书架扫码借书，并根据借书时间按时归还", "#AAAAAA"));

        template.setTemplateParamList(params);

        AccessToken accessToken = JsapiTicketUnit.getAccessToken("", "");

        System.out.println(accessToken.getToken());

        int a=AdvancedUtil.sendTemplateMsg(accessToken.getToken(),template);

        System.out.println(a);*/

       System.out.println("-------------------------"+AdvancedUtil.sign(AdvancedUtil.getJSApi(),"http://localhost:8080/login"));



    }

}
